#ifndef GX_FR_EDITOR_BRUSHSTATE_H
#define GX_FR_EDITOR_BRUSHSTATE_H

#include "State.h"
#include "BoxTweaker.h"

namespace FinalRendering
{
	namespace Editor
	{	
		class BrushState : public State
		{
		private:
			int cCreatePeriod;
			vec3 cv1,cv2;
			RefPtr<BoxTweaker> tweaker;
			void Draw(View * view);
			void CreateBrush();
		public:
			BrushState();
			virtual void DrawState_3DView(View3D * view);
			virtual void DrawState_LeftView(ViewLeft* view);
			virtual void DrawState_TopView(ViewTop * view);
			virtual void DrawState_FrontView(ViewFront * view);

			virtual void MouseDown(View * view, UIMouseEventArgs & e);
			virtual void MouseUp(View * view, UIMouseEventArgs & e);
			virtual void MouseMove(View * view, UIMouseEventArgs & e);
			virtual void KeyDown(View * view, UIKeyEventArgs & e);
		};
	}
}

#endif